package com.xiaoxing.zhinenghuacangku_nanjinglu.di.module;

import com.jess.arms.di.scope.ActivityScope;

import dagger.Module;
import dagger.Provides;

import com.xiaoxing.zhinenghuacangku_nanjinglu.mvp.contract.NanJingLu_DianBiaoLiKuRuKuContract;
import com.xiaoxing.zhinenghuacangku_nanjinglu.mvp.model.NanJingLu_DianBiaoLiKuRuKuModel;


@Module
public class NanJingLu_DianBiaoLiKuRuKuModule {
    private NanJingLu_DianBiaoLiKuRuKuContract.View view;

    /**
     * 构建NanJingLu_DianBiaoLiKuRuKuModule时,将View的实现类传进来,这样就可以提供View的实现类给presenter
     *
     * @param view
     */
    public NanJingLu_DianBiaoLiKuRuKuModule(NanJingLu_DianBiaoLiKuRuKuContract.View view) {
        this.view = view;
    }

    @ActivityScope
    @Provides
    NanJingLu_DianBiaoLiKuRuKuContract.View provideNanJingLu_DianBiaoLiKuRuKuView() {
        return this.view;
    }

    @ActivityScope
    @Provides
    NanJingLu_DianBiaoLiKuRuKuContract.Model provideNanJingLu_DianBiaoLiKuRuKuModel(NanJingLu_DianBiaoLiKuRuKuModel model) {
        return model;
    }
}